import { httpPost, httpGet, httpDel, httpPut } from '../index'

export function page (query) {
  return httpGet('/api/auth/service/page', query)
}

export function addObj (obj) {
  return httpPost('/api/auth/service', obj)
}

export function getObj (id) {
  return httpGet('/api/auth/service/' + id)
}

export function delObj (id) {
  return httpDel('/api/auth/service/' + id)
}

export function putObj (id, obj) {
  return httpPut('/api/auth/service/' + id, obj)
}

export function getClients (id) {
  return httpGet('/api/auth/service/' + id + '/client')
}

export function modifyClients (id, data) {
  return httpPut('/api/auth/service/' + id + '/client', data)
}
